package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.WuliaoTree;
import com.tansuo365.test1.mapper.othermapper.WuliaoTreeMapper;
import com.tansuo365.test1.service.otherservice.WuliaoTreeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WuliaoTreeServiceImpl implements WuliaoTreeService {
    @Resource
    private WuliaoTreeMapper wuliaoTreeMapper;

    @Override
    public int createTreeAfterInsertWuliao() {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wuliaoTreeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchByPKArr(Integer[] ids) {
        return wuliaoTreeMapper.deleteBatchByPKArr(ids);
    }

    @Override
    public int insert(WuliaoTree wuliaoTree) {
        return wuliaoTreeMapper.insert(wuliaoTree);
    }

    @Override
    public int insertSelective(WuliaoTree wuliaoTree) {
        return wuliaoTreeMapper.insertSelective(wuliaoTree);
    }

    @Override
    public WuliaoTree selectByPrimaryKey(Integer id) {
        return wuliaoTreeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WuliaoTree> findByParentId(int p_id) {
        return wuliaoTreeMapper.findByParentId(p_id);
    }

    @Override
    public int updateByPrimaryKeySelective(WuliaoTree wuliaoTree) {
        return wuliaoTreeMapper.updateByPrimaryKeySelective(wuliaoTree);
    }

    @Override
    public int updateByPrimaryKey(WuliaoTree wuliaoTree) {
        return wuliaoTreeMapper.updateByPrimaryKey(wuliaoTree);
    }
}
